<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <? include_once(ROOT_PATH_ . "/controller/common/module/head.php"); ?>
    <? include_once("../controller/data_edit.php"); ?>
    <?php include_once('module/mod-nkeditor.php'); ?>
</head>


<body>
<div id="topbar">
    <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?>
</div>



<div id="container" class="<? echo $now_extender ?>">
    <div id="maincontent">


        <div id="sidebar">
            <?php include '../../../modules/sidebar.php'; ?>
        </div>



        <div id="content">

            <!--标题设定-->
            <?php $page_title='编辑'.$data['data_detail']['name'].'留言';?>
            <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>







           <div class="detail-box">


               <ul class="detail-boxing layui-form">


                       <input type="hidden"  name="nid" value="<? echo $data['data_detail']['nid']?>" >

                       <!--普通的input文本输入-->
                       <li class="layui-form-item name">
                           <label class="layui-form-label">名称：</label>
                           <div class="layui-input-block">
                               <input type="text" class="layui-input"  name="ai_name"  value="<? echo $data['data_detail']['name'] ?>">
                           </div>
                       </li>

                       <li><label>昵称：</label>

                           <div class="layui-input-block"><input type="text" class="layui-input" name="ai_nickname"
                                                                 size="20"
                                                                 value="<? echo $data['data_detail']['nickname'] ?>">
                           </div>
                       </li>

                       <li class="name">
                           <label>标题：</label><div class="layui-input-block"><input type="text" class="layui-input" name="ai_name" size="20" value="<? echo $data['data_detail']['name'] ?>"></div></li>


                       <li class="introduce">
                           <label>反馈内容：</label>
                           <div class="layui-input-block">
                               <textarea name="ai_introduce" cols="10" style="width:800px;height:250px;visibility:hidden;">
                                   <? echo $data['data_detail']['introduce'] ?></textarea>
                           </div>
                       </li>


                       <li><label>电子邮箱：</label>

                           <div class="layui-input-block">
                               <input type="text" class="layui-input" name="ai_email" size="20"
                                      value="<? echo $data['data_detail']['email'] ?>">
                           </div>
                       </li>
                       <li><label>单位名称：</label>

                           <div class="layui-input-block"><input type="text" class="layui-input" name="ai_company"
                                                                 size="20"
                                                                 value="<? echo $data['data_detail']['company'] ?>">
                           </div>
                       </li>
                       <li><label>联系地址：</label>

                           <div class="layui-input-block"><input type="text" class="layui-input" name="ai_address"
                                                                 size="20"
                                                                 value="<? echo $data['data_detail']['address'] ?>">
                           </div>
                       </li>
                       <li><label>联系电话：</label>

                           <div class="layui-input-block"><input type="text" class="layui-input" name="ai_phone"
                                                                 size="20"
                                                                 value="<? echo $data['data_detail']['phone'] ?>"></div>
                       </li>
                       <li class="inputtime"><label>留言时间：</label>

                           <div class="layui-input-block"><input type="text" class="layui-input" name="ai_inputtime"
                                                                 size="20"
                                                                 value="<? echo $data['data_detail']['inputtime'] ?>">
                           </div>
                       </li>

                       <li class="iplocation"><label>IP所属：</label>
                           <div class="layui-input-block">
                               <input type="text" class="layui-input"   size="20"
                                      value="<? echo $data['data_detail']['iplocation'] ?>"  disabled>
                               <input type="hidden" class="layui-input" name="ai_iplocation" size="20"
                                      value="<? echo $data['data_detail']['iplocation'] ?>" >
                           </div>
                       </li>


                       <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
                       <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
                       <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>
                       <input name="term_nid" type="hidden" value="<? echo $_REQUEST['term_nid'] ?>"/>



               </ul>
           </div>
        </div>



        <?
        //==============================================================================
        //这里上面才是平常开发需要注重的部分，下面的基本不用理会，只有底部JS部分需要根据实际情况去加载
        //==============================================================================
        ?>



            </div>
            <!--detail-box end-->


        </div>
        <!--content端點01-->



</div>
<!--maincontent-->
<br class="clearfloat"/>
</div>
<!--container-->
</div>





<!--渲染日期需要用到的-->
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#publish_date' //指定元素
            ,type: 'datetime'
        });
    });
</script>




<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>

</body>
</html>